package top.dotgo.model.biz;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import top.dotgo.model.IBaseEntity;

import javax.persistence.*;

/**
 * (BizDict)实体类
 *
 * @author jornl
 * @date 2020-05-21 00:03:49
 */
@Entity
@Data
@Accessors(chain = true)
@Table(name = "biz_dict")
public class BizDictEntity implements IBaseEntity, Serializable {
       /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "custom-id")
    @GenericGenerator(name = "custom-id", strategy = "top.dotgo.model.kit.CustomIDGenerator")
     @Column(name = "id")
     private Long id;
    
    /**
     * 键
     */
     @Column(name = "key")
     private String key;
    
    /**
     * 值
     */
     @Column(name = "value")
     private String value;
    
    /**
     * 上级id
     */
     @Column(name = "p_id")
     private Long pId;
    
    /**
     * 备注信息
     */
     @Column(name = "remark")
     private String remark;
    
    /**
     * 总公司
     */
     @Column(name = "top_company_id")
     private Long topCompanyId;
    
    /**
     * 所属公司
     */
     @Column(name = "company_id")
     private Long companyId;
    
    /**
     * 创建人
     */
     @Column(name = "create_by")
     private Long createBy;
    
    /**
     * 创建时间
     */
     @Column(name = "create_time")
     private Date createTime;
    
    /**
     * 修改人
     */
     @Column(name = "edit_by")
     private Long editBy;
    
    /**
     * 修改时间
     */
     @Column(name = "edit_time")
     private Date editTime;
    
    /**
     * 删除人
     */
     @Column(name = "del_by")
     private Long delBy;
    
    /**
     * 删除时间
     */
     @Column(name = "del_time")
     private Date delTime;
    
    /**
     * 0禁用，1启用
     */
     @Column(name = "status")
     private Integer status;
    
    /**
     * 配置类型: 0pt平台字典 , 1biz业务字典 , 2用户自定义
     */
     @Column(name = "type")
     private Integer type;
    
    /**
     * 排序 编号
     */
     @Column(name = "sort")
     private Integer sort;
    


}